package com.bit.aop.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Order(3)
//@Component
public class AspectDemo2 {

    @Before("execution(* com.bit.aop.controller.*.*(..))")
    public void doBefore() {
        log.info("AspectDemo2 doBefore....");

    }
    @After("execution(* com.bit.aop.controller.*.*(..))")
    public void doAfter(){
        log.info("AspectDemo2 doAfter....");
    }

}
